<template>
  <view class="container">
    <!-- 搜索 -->
    <view class="header">
      <image src="../../static/icon/search.png" mode="" style="position: absolute; left: 50rpx; width: 28rpx; height: 28rpx"></image>
      <input type="text" placeholder="搜索文章" class="ipt" />
    </view>
    <!-- 文章 -->
    <view class="articlebox" v-for="index in 3" :key="index">
      <image src="../../static/img/bannerimg1.png" mode="aspectFill" style="width: 710rpx; height: 280rpx"></image>
      <view style="font-size: 28rpx; font-family: PingFang SC, PingFang SC; font-weight: bold; color: #222222; padding-left: 30rpx; margin-top: 10rpx">
        如何养成良好的学习习惯？
      </view>
    </view>
  </view>
</template>

<script>
export default {
  data() {
    return {};
  }
};
</script>

<style lang="scss" scoped>
.ipt::placeholder {
  color: #fff;
}
.container {
  box-sizing: border-box;
  .header {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100rpx;
    background-color: #3553e8;
    .ipt {
      box-sizing: border-box;
      width: 692rpx;
      height: 64rpx;
      background: #5d75ed;
      padding-left: 80rpx;
      margin: 0 30rpx 0 28rpx;
      border-radius: 100rpx 100rpx 100rpx 100rpx;
    }
  }
  .articlebox {
    box-sizing: border-box;
    width: 710rpx;
    height: 360rpx;
    margin: 30rpx 20rpx;
    background: #ffffff;
    box-shadow: 0rpx 4rpx 4rpx 2rpx rgba(191, 191, 191, 0.16);
    border-radius: 20rpx 20rpx 20rpx 20rpx;
  }
}
</style>
